package com.libservice.loggerservice

import com.orhanobut.logger.Logger

enum class Level {
    VERBOSE,
    DEBUG,
    INFO,
    WARN,
    ERROR,
    ASSERT;

    companion object {
    }

    val priority: Int
        get() {
            return when (this) {
                VERBOSE -> Logger.VERBOSE
                DEBUG -> Logger.DEBUG
                INFO -> Logger.INFO
                WARN -> Logger.WARN
                ERROR -> Logger.ERROR
                ASSERT -> Logger.ASSERT
            }
        }
}

interface LoggerServiceInterface {
    fun log(level: Level, message: String)
}